package main

import (
	"fmt"
)

type person struct {
	Name string
	Age  int
}

func main() {
	a := &person{
		Name: "johnny",
		Age : 19,
	}
	a.Name = "ok"
	fmt.Println(a)
	A(a)
	B(a)
	fmt.Println(a)
}

func A(per *person){
	per.Age = 13
	per.Name = "nimo"
	fmt.Println("A", per)
}
func B(per *person){
	per.Age = 15
	fmt.Println("B", per)
}